/*
 * EnRoute.h
 *
 *  Created on: 12 nov. 2012
 *      Author: guegan
 */

#ifndef ENROUTE_H_
#define ENROUTE_H_

#include "EtatRobot.h"
#include "Fige.h"
#include <iostream>

class EnRoute : public EtatRobot
{
public:
	EnRoute(string nom) : EtatRobot(nom) {}

	void figer(){
		Fige::setEtatPrecedent(robot->getEtatRobot());
		robot->setEtatRobot(EtatRobot::getEtatRobot("Fige"));
		cout << robot->getEtatRobot() << endl;
	}

	virtual ~EnRoute() {}

};

#endif /* ENROUTE_H_ */
